<template>
  <div
    class="element-container"
    :style="{
      height: height + 'px',
    }"
  >
    <div
      class="content-container"
      :style="{
        background: background ? `url(${background})` : 'white',
      }"
    >
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    background: {
      type: String,
      default: null,
    },
    height: {
      type: Number,
      default: 240,
    },
  },
};
</script>

<style lang="scss" scoped>
.element-container {
  background: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  .content-container {
    width: 100%;
    height: 100%;
    padding: 36px 20px;
    overflow: hidden;
  }
}
</style>
